package logic.weapons.energyWeapons;

import logic.ships.Ship;
import logic.weapons.Weapon;
import logic.weapons.WeaponFire;
import logic.weapons.WeaponProperties;
import logic.weapons.WeaponType;

import com.jme.math.Vector3f;
import com.jme.scene.Node;

public class EnergyWeapon extends Weapon {
	
	private static final long serialVersionUID = 1L;
	
	public EnergyWeapon(Node model, String path, String title, WeaponProperties properties, Ship ship) {
		super(model, path, title, properties, ship);
	}
	
	@Override
	public WeaponFire getNewWeaponFire(Vector3f direction, Vector3f startLoc, boolean dummy) {
		Node model = new Node("Energy Projectile");
		EnergyWeaponFire fire = new EnergyWeaponFire(ship, model, startLoc, properties, direction, this);
		
		return fire;
	}
	
	@Override
	public WeaponType getWeaponType() { return WeaponType.Energy; }
}